#include <iostream>
using namespace std;

// 定义一个函数：计算两个数的和
int add(int a, int b) {
    return a + b;
}

int main() {
    cout << "=========================\n";
    cout << "   欢迎使用 C++ 程序！\n";
    cout << "=========================\n";

    int x, y;
    cout << "请输入两个整数：";
    cin >> x >> y;

    int sum = add(x, y);
    cout << "它们的和是：" << sum << endl;

    // 输出一个简单的循环
    cout << "接下来输出 1 到 5：" << endl;
    for (int i = 1; i <= 5; ++i) {
        cout << i << " ";
    }
    cout << endl;

    cout << "程序运行结束，再见！" << endl;
    return 0;
}
